
import request from '@/plugin/axios'

// 获取分页列表
export function getrequestlogpage (params) {
    return request({
      url: '/log/requestlog/page',
      method: 'get',
      params: request.adornParams(params)
    })
  }
// 获取列表
export function getrequestloglist (params) {
  return request({
    url: '/log/requestlog/list',
    method: 'get',
    params: request.adornParams(params)
  })
}

// 获取信息
export function getrequestloginfo (id) {
  return request({
    url: '/log/requestlog/info/' + id,
    method: 'get',
    params: request.adornParams({})
  })
}

// 添加
export function addrequestlog (data) {
  return request({
    url: '/log/requestlog/save',
    method: 'post',
    data
  })
}

// 修改
export function updaterequestlog (data) {
  return request({
    url: '/log/requestlog/update',
    method: 'put',
    data
  })
}

// 批量删除
export function delBatchrequestlog (params) {
  return request({
    url: '/log/requestlog/delete',
    method: 'post',
    data: request.adornData(params, false)
  })
}

// 删除
export function delrequestlog(id) {
  return request({
    url: '/log/requestlog/delete/' + id,
    method: 'delete',
  })
}